package com.x.chalk.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.x.chalk.entity.HotTopic;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HotTopicDao extends BaseMapper<HotTopic> {

    //根据评论数量 降序排序
    @Select("select * from t_hottopic order by comment_num desc")
    List<HotTopic> queryDesc();

}
